package rs.arm.letthemusicplay;

import rs.arm.letthemusicplay.filechooser.FileChooser;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

public class StartUpActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.startupactivity);
		ImageView image = (ImageView) findViewById(R.id.start_up_image);
		Animation animation = AnimationUtils
				.loadAnimation(this, R.anim.fade_in);
		image.startAnimation(animation);
		animation.setAnimationListener(new Animation.AnimationListener() {

			@Override
			public void onAnimationStart(Animation animation) {
			}

			@Override
			public void onAnimationRepeat(Animation animation) {
			}

			@Override
			public void onAnimationEnd(Animation animation) {
				Intent i = new Intent(StartUpActivity.this, FileChooser.class);
				startActivity(i);
				StartUpActivity.this.finish();
			}
		});

	}

}
